﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Advogado.aspx.cs" Inherits="Advogado" Title="E-Lawyer :: Advogados" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <p>
        
            <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
            <asp:TextBox ID="txtBuscaNome" runat="server" Width="239px"></asp:TextBox>
            &nbsp;<asp:ImageButton ID="btnPesquisar" runat="server" 
                ImageUrl="~/Images/Search.png" onclick="btnPesquisar_Click" 
                ToolTip="Pesquisar" />
        
        </p>      
            <p>
                &nbsp;</p>
    <asp:GridView ID="grdAdvogado" runat="server" AutoGenerateColumns="False" 
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
        CellPadding="2" ForeColor="Black" Width="100%" 
        onrowdeleting="grdAdvogado_RowDeleting" onrowcommand="grdAdvogado_RowCommand">
        <Columns>
            <asp:ButtonField ButtonType="Image" CommandName="Edit" 
                ImageUrl="~/Images/Edit.png" Text="Button">
                <ItemStyle HorizontalAlign="Center" Width="30px" />
            </asp:ButtonField>
            <asp:CommandField ButtonType="Image" ShowDeleteButton="True" 
                DeleteImageUrl="~/Images/delete.png" ShowCancelButton="False" >
                <ItemStyle Height="30px" HorizontalAlign="Center" Width="30px" />
            </asp:CommandField>
            <asp:BoundField DataField="oab" HeaderText="Oab" >
            <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="nome" HeaderText="Nome">
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="cpf" HeaderText="CPF">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle Width="100px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="Tan" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
    </asp:GridView>
     </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

<asp:Content ID="Content3" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
                <asp:Menu ID="Menu1" runat="server" Height="16px" 
                    Orientation="Horizontal" Width="46px" CssClass="menuPrincipal">
                <Items>
                    <asp:MenuItem ImageUrl="~/Images/people.png" 
                        SeparatorImageUrl="~/Images/separator.png" ToolTip="Adicionar Clientes" 
                        NavigateUrl="~/Cliente.aspx">
                    </asp:MenuItem>
                    <asp:MenuItem ImageUrl="~/Images/folder_add.png" ToolTip="Advogados" 
                        NavigateUrl="~/NewAdvogado.aspx" 
                        SeparatorImageUrl="~/Images/separator.png"></asp:MenuItem>
                    <asp:MenuItem ImageUrl="~/Images/foro.png" NavigateUrl="~/Foro.aspx" 
                        ToolTip="Foro" SeparatorImageUrl="~/Images/separator.png"></asp:MenuItem>
                    <asp:MenuItem ImageUrl="~/Images/Document.png" NavigateUrl="~/Processo.aspx">
                    </asp:MenuItem>
                </Items>
                </asp:Menu>
                
</asp:Content>



